﻿@{
	ViewBag.HideSidebar = true;
}

<div class="container-fluid dashboard">

	@{
		if (this.Model.Projects.Count > 0)
		{
			<div class="row proj-slider">
				<div id="proj-silder" class="carousel slide" data-ride="carousel">
					@if (this.Model.Projects.Count > 1)
					{
						<ol class="carousel-indicators">
							@{
						int i = 0;

						foreach (var proj in this.Model.Projects)
						{
							<li data-target="#proj-silder" data-slide-to="@i"
								@if (i == 0) { @: class="active"
																																																																							}></li>
i++;
						}
							}
						</ol>
						<div class="hidden-xs carousel-indicators-fakers">
							@{
						for (int k = 0; k < this.Model.Projects.Count; k++)
						{
							<a href="javascript:void(0)" title="@this.Model.Projects[k].ProjectName" data-target="#proj-silder" data-slide-to="@k"
							   @if (k == 0) { @: class="active"
							   							   							   							   							   																	}>@this.Model.Projects[k].ProjectName</a>
						}
							}
						</div>

					}


					<div class="carousel-inner" role="listbox">
						@{int j = 0;
						foreach (var proj in this.Model.Projects)
						{
							<div class="item
								 @if (j == 0) { @: active
								 								 								 								 								 							 					 						} bg-@Mysoft.MyCM.Web.Controllers.DashboardController.GetProductVersionTag(proj.ProductVersion)">
								<div class="carousel-caption">
								</div>
								<div class="container-fluid">
									<div class="row">
										<div class="col-xs-12 col-sm-12 col-md-12 placeholders">
											<span class="proj-name line">@this.Model.Customer.CustomName \ @proj.ProjectName</span>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 placeholders">&nbsp;</div>
										<div class="col-xs-12 col-sm-12 col-md-12">
											<span class="proj-info line title"><i class="fa fa-desktop"></i> 客户基线：</span>
											<a class="proj-info-link hidden-xs" href="/CsCm/@ViewBag.SelectedCustomerCode/Baseline" title="查看客户基线详情"><i class="fa fa-tag"></i> 1B54FBC0A3B1F508DD70439E8D15B98F</a>
											<span class="proj-info-date hidden-xs">2015-6-25 23:46:12</span>
											<span class="label label-info hidden-xs">已请求</span>
											<span class="label label-success hidden-xs">已更新</span>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
											<a class="proj-info-link line" href="/CsCm/@ViewBag.SelectedCustomerCode/Baseline" title="查看客户基线详情"><i class="fa fa-tag"></i> 1B54FBC0A3B1F508DD70439E8D15B98F</a>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
											<span class="proj-info-date line">2015-6-25 23:46:12</span>
											<span class="label label-info">已请求</span>
											<span class="label label-success">已更新</span>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 placeholders">&nbsp;</div>

										<div class="col-xs-12 col-sm-12 col-md-12">
											<span class="proj-info line title"><i class="fa fa-file-code-o"></i> 研发基线：</span>
											<a class="proj-info-link hidden-xs" href="/Scm/@ViewBag.SelectedCustomerCode/Updates" title="查看研发客户池详情"><i class="fa fa-tag"></i> 1B54FBC0A3B1F508DD70439E8D15B98F</a>
											<span class="proj-info-date hidden-xs">2015-6-24 12:35:00</span>
											<span class="label label-warning hidden-xs">最新版本</span>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
											<a class="proj-info-link line" href="/Scm/@ViewBag.SelectedCustomerCode/Updates" title="查看研发客户池详情"><i class="fa fa-tag"></i> 1B54FBC0A3B1F508DD70439E8D15B98F</a>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
											<span class="proj-info-date line">2015-6-24 12:35:00</span>
											<span class="label label-warning">最新版本</span>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 placeholders">&nbsp;</div>

										<div class="col-xs-12 col-sm-12 col-md-12">
											<span class="proj-info line title"><i class="fa fa-code"></i> Scm概况：</span>
											<a class="proj-info-link hidden-xs" href="/Scm/@ViewBag.SelectedCustomerCode/" title="查看Scm详情"><i class="fa fa-code-fork"></i> 3 条分支正在使用，共 5 条分支</a>
											<span class="label label-danger hidden-xs">超出最大10条分支数限制</span>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
											<a class="proj-info-link line" href="/Scm/@ViewBag.SelectedCustomerCode/" title="查看Scm详情"><i class="fa fa-code-fork"></i> 3 条分支正在使用，共 5 条分支</a>
										</div>
										<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
											<span class="label label-danger line">超出最大10条分支数限制</span>
										</div>

										<div class="col-xs-12 col-sm-12 col-md-12">&nbsp;</div>
									</div>
								</div>
							</div>
j++;
						}

						}

					</div>
					@if (this.Model.Projects.Count > 1)
					{
						<a class="left carousel-control" href="#proj-silder" role="button" data-slide="prev" title="上一个项目信息">
							<span class="fa fa-chevron-left" aria-hidden="true"></span>
							<span class="sr-only">上一个项目信息</span>
						</a>
						<a class="right carousel-control" href="#proj-silder" role="button" data-slide="next" title="下一个项目信息">
							<span class="fa fa-chevron-right" aria-hidden="true"></span>
							<span class="sr-only">下一个项目信息</span>
						</a>
					}

				</div>
			</div>
			<div class="row visible-xs proj-slider-ext carousel-indicators-fakers2">
				@{
					int x = 0;
					foreach (var proj in this.Model.Projects)
					{
						<div class="col-xs-12 col-sm-12 col-md-12
							 @if (x == 0) { @: active
							 							 							 							 							 } " data-target=" #proj-silder" data-slide-to="@x">
							<span><i class="fa fa-info-circle"></i> @proj.ProjectName</span>
						</div>
x++;
					}
				}

			</div>
		}
	}

	<div class="row rpt-panel">
		<div class="col-sm-4 col-md-4 hidden-xs">
		</div>
		<div class="col-xs-12 col-sm-offset-4 col-sm-8  col-md-offset-4 col-md-8 ">
			<div class="container-fluid">
				<div class="col-xs-12 col-sm-12 col-md-12 placeholders">
					<a class="heading line" href="/RptCM/@ViewBag.SelectedCustomerCode/Index/Certificate" title="查看明源认证报表"><i class="fa fa-user-secret"></i> 明源认证报表 25 张</a>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 placeholders">
					<a class="heading user line" href="/RptCM/@ViewBag.SelectedCustomerCode/Index/User" title="查看明源认证报表"><i class="fa fa-user"></i> 用户报表 5 张</a>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12">
					<a class="sub-heading line" href="/RptCM/@ViewBag.SelectedCustomerCode/" title="查看报表台账明细"><i class="fa fa-cloud-upload"></i> 最近更新： 销售复仇者联盟大闹天宫统计</a>
					<span class="check-user hidden-xs">by 钢铁侠</span>
					<span class="check-date hidden-xs">2015-6-24 12:35:00</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
					<span class="check-user line">钢铁侠 on</span>
					<span class="check-date">2015-6-24 12:35:00</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 placeholders">&nbsp;</div>
			</div>
		</div>
	</div>

	<div class="row cs-panel">
		<div class="col-xs-12 col-sm-12 col-md-12">
			<div class="container-fluid">
				<div class="col-xs-12 col-sm-12 col-md-12">
					<span class="heading line"><i class="fa fa-dashboard"></i> CPU：</span> 
					<span class="info">intel i3 2500 * 8</span>
					&nbsp;&nbsp;
					<span class="heading hidden-xs"><i class="fa fa-tasks"></i> 内存：</span>
					<span class="info hidden-xs">8G</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
					<span class="heading line"><i class="fa fa-tasks"></i> 内存：</span>
					<span class="info">8G</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12">
					<span class="heading line"><i class="fa fa-desktop"></i> 操作系统：</span>
					<span class="info">Server 2008 R2 SP2</span>
					&nbsp;&nbsp;
					<span class="heading hidden-xs"><i class="fa fa-cloud"></i> IIS：</span>
					<span class="info hidden-xs">7.0</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 visible-xs">
					<span class="heading line"><i class="fa fa-cloud"></i> IIS：</span>
					<span class="info">7.0</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 placeholders">
					<span class="heading line"><i class="fa fa-cogs"></i> .NET：</span>
					<span class="info">2.0, 3.0, 3.5, 4.0, 4.5</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 placeholders">
					<span class="heading line"><i class="fa fa-dropbox"></i> SQL：</span>
					<span class="info">2005, 2008R2</span>
				</div>
				<div class="col-xs-12 col-sm-12 col-md-12 placeholders">
					<a class="line" title="查看更多信息" href="/CsCm/@ViewBag.SelectedCustomerCode/Environment">更多信息...</a>
				</div>
			</div>
		</div>
	</div>

</div>

@section scripts{
	<script type="text/javascript">
		$(window).load(function () {
			/*$("#proj-silder").carousel("pause");*/
			//$("#proj-silder").on('slid.bs.carousel', function () {
			//	$("#proj-silder").carousel("pause");
			//})
		});
		function slideToProject(num) {
			$("#proj-silder").carousel(num);
		}
	</script>
}

